package com.yonyou.pmclouds.workstopreport.rmiitf;

import com.yonyou.pmclouds.basecom.entity.PageObject;
import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.billview.entity.BillViewQueryVO;
import com.yonyou.pmclouds.project.entity.ProjectVO;
import com.yonyou.pmclouds.repeatwork.entity.RepeatWorkVO;
import com.yonyou.pmclouds.workstopreport.entity.WorkStopVO;

import java.util.List;
import java.util.Map;

public interface WorkStopQuery {
    /**
     * 通过报告ID查询停工报告
     */
    WorkStopVO getReport(String reportId) throws BusinessException;
    /**
     * 根据条件查询停工条件
     */
    PageObject<Object> queryByCondition(BillViewQueryVO billViewQueryVO) throws BusinessException;
    /**
     * 根据主键查询停工单
     * @param ids
     * @return
     */
    Map<String,WorkStopVO> queryByIds(String[] ids);

    /**
     * 根据单据状态查询指定项目的停工单。
     * @param pkProject
     * @param status
     * @return
     * @throws BusinessException
     */
    WorkStopVO[] queryByStatus(String pkProject, int[] status) throws BusinessException;

}
